package com.platform.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.common.annotation.Excel;
import com.platform.common.annotation.Excels;
import com.platform.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 热数据记录对象 calor_record
 * 
 * @author wangqi
 * @date 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("calor_record")
public class MeterRead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 热表id */
    @Excel(name = "热表id", type = Excel.Type.IMPORT)
    private String calorimeterId;


    /** 热量 */
    @Excel(name = "热量")
    private String heat;

    /** 流量 */
    @Excel(name = "流量")
    private String flow;

    /** 功率 */
    @Excel(name = "功率")
    private String power;

    /** 瞬时流量 */
    @Excel(name = "瞬时流量")
    private String instant;

    /** 进水温度 */
    @Excel(name = "进水温度")
    private String inlet;

    /** 出水温度 */
    @Excel(name = "出水温度")
    private String outlet;

    /** 工作时间 */
    @Excel(name = "工作时间")
    private String workTime;

    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date updateTime;

    /** 采集器时间 */
    @Excel(name = "热表时间")
    private String gatherTime;

    /** 室温采集器类型 */
    @Excels({
            @Excel(name = "热表ID", targetAttr = "calorimeterId", type = Excel.Type.EXPORT),
    })
    @TableField(exist = false)
    private BaseCalorimeterData calorimeterData ;

    /** 厂商信息 */
    @Excels({
            @Excel(name = "厂商名称", targetAttr = "factoryName", type = Excel.Type.EXPORT),
            @Excel(name = "厂商代码", targetAttr = "factoryCode", type = Excel.Type.EXPORT)
    })
    @TableField(exist = false)
    private BaseFactory factory;



    @TableField(exist = false)
    private String ids;

    /** 地址信息 */
    @Excels({
            @Excel(name = "地址全称", targetAttr = "subscriberName"),
            @Excel(name = "地址代码", targetAttr = "subscriberId", type = Excel.Type.EXPORT)
    })
    @TableField(exist = false)
    private BaseSubscriber subscriber;
    /** 地址id */
    @TableField(exist = false)
    private String subscriberId;
    /** 地址id */
    @TableField(exist = false)
    private String subscriberName;

    /** 热量表类型 */
    @Excels({
            @Excel(name = "热量表类型Id", targetAttr = "typeId", type = Excel.Type.EXPORT),
            @Excel(name = "热量表类型", targetAttr = "typeName", type = Excel.Type.EXPORT),
    })
    @TableField(exist = false)
    private BaseCalorimeterType calorimeterType;
    /** 集中器id */
    @TableField(exist = false)
    @Excel(name = "集中器id", type = Excel.Type.IMPORT)
    private String concentratorId;
    /** 热表ids */
    @TableField(exist = false)
    private String calorimeterIds;



}
